dcb54e095dde0aa7c1dac7a23f0862699d003848,test-framework-docker/system-test/src/test/java/com/containersolutions/mesoshelloworld/systemtest/DiscoverySystemTest.java,DiscoverySystemTest,removeExecutors,#,82
Before Change
// stop scheduler, otherwise it keeps on scheduling new executors as soon as they are stopped
util.getContainers(false).filterByImage(SchedulerContainer.SCHEDULER_IMAGE).kill().remove();
DockerContainersUtil executors = util.getContainers(false).filterByImage(Configuration.DEFAULT_EXECUTOR_IMAGE);
LOGGER.info(String.format("Found %d containers to stop and remove", executors.size()));
executors.kill(true).remove();
}
After Change
@AfterClass
public static void removeExecutors() {
DockerContainersUtil running = DockerContainersUtil.getContainers(false);
// stop scheduler, otherwise it keeps on scheduling new executors as soon as they are stopped
running.filterByImage(SchedulerContainer.SCHEDULER_IMAGE).kill().remove();